﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace PracticeWcf
{ 
    
    //[DataContract]
    //public class CityRequest
    //{      
       
    //        [DataMember]
    //        public int ID
    //        { get; set; }

    //        [DataMember]
    //        public string City
    //        { get; set; }

    //        [DataMember]
    //        public int valid
    //        { get; set; }

    //}

    public class cityDT
    {
        public int Id { get; private set; }
        public string City { get; private set; }


        public static cityDT[] GetCities(int num)
        {
            cityDT[] result = new cityDT[num];
            for (int i = 0; i < num; i++)
            {
                result[i] = new cityDT()
                {
                    Id = (i + 1),
                    City = "" + (char)('a' + i)
                };
                
            }
            return result;
        }
    }
}